<template>
	<view class="my-search-container" @click="searchBoxhander">
		<view class="my-search-box">
			<uni-icons type="search" size="17"></uni-icons>
			<text class="placeholder">搜索</text>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				
			}
		},
		methods:{
			searchBoxhander(){
				this.$emit('click')
			}
		}
	}
</script>
<style lang="scss">
	.my-search-container{
		background-color: #c00000;
		height: 50px;
		padding: 0 20px;
		display: flex;
		align-items: center;
	}
	.my-search-box{
		height: 36px;
		background-color: #ffffff;
		border-radius: 20px;
		display: flex;
		justify-content: center;
		width: 100%;
		align-items: center;
		
		.placeholder{
			font-size: 15px;
			margin-left: 5px;	
		}
	}
</style>
